#include <iostream>
#include "bigint.h"
#define _WINDOWS
#if defined(_WINDOWS)
#include <windows.h>
#include "psapi.h"
#endif

using namespace std;

int main()
{
	HANDLE hProc = GetCurrentProcess();
	PROCESS_MEMORY_COUNTERS_EX info;
	info.cb = sizeof(info);
	bigint n1("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890");
	//n1.equals("1234");
	bigint n2("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890");
	BOOL okay = GetProcessMemoryInfo(hProc, (PROCESS_MEMORY_COUNTERS*)&info, info.cb);
	n2 = n2 + n1;
	cout << n2 << endl;
	cout << (float)info.WorkingSetSize/1024/1024 << endl;
	return 0;
}